<?php

	/**
	 * description
	 * detail description
	 * @todo
	 * @author swingcoder <swingcoder@msn.com>
	 * @version 0.1
	 * @copyright Copyright (c) 2009, swingcoder.com
	 */

	class get_cate_list
	{
		/**
		 * description
		 * detail description
		 * @param string user
		 * @param integer id
		 * @return int|string|array|object|mixed
		 */
		function run( $argument )
		{
			$argument['size'] = isset( $argument['pagesize'] ) ? $argument['pagesize'] : 12;

			$argument['parent_cate_id'] = $argument['cate_id'];

			$cate = load( 'biz.cate' );
			$result = $cate->all( $argument );

			return $result['data'];


		}
	}

?>